projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3d6c6
)
(math-simplify-units-quotient): Replace missing exponent.
author
Jay Belanger
<jay.p.belanger@gmail.com>
Wed, 24 Oct 2007 01:51:40 +0000
(
01:51
+0000)
committer
Jay Belanger
<jay.p.belanger@gmail.com>
Wed, 24 Oct 2007 01:51:40 +0000
(
01:51
+0000)
lisp/calc/calc-units.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-units.el
b/lisp/calc/calc-units.el
index 839bac77581db2d0d807ea36928da85843b86e6e..a7c4b20e30dee5abba665eda6b923e68105dac39 100644
(file)
--- a/
lisp/calc/calc-units.el
+++ b/
lisp/calc/calc-units.el
@@
-1222,7
+1222,9
@@
If EXPR is nil, return nil."
(and un ud
(if (and (equal (nth 4 un) (nth 4 ud))
(eq pow1 pow2))
- (math-to-standard-units (list '/ n d) nil)
+ (if (eq pow1 1)
+ (math-to-standard-units (list '/ n d) nil)
+ (list '^ (math-to-standard-units (list '/ n d) nil) pow1))
(let (ud1)
(setq un (nth 4 un)
ud (nth 4 ud))